import request from '@/utils/request'

export function loadTeamCategory() {
  return request({
    url: '/system/teamCategory/all',
    method: 'get'
  })
}
// 查询组队分类列表
export function listTeamCategory(query) {
  return request({
    url: '/system/teamCategory/list',
    method: 'get',
    params: query
  })
}

// 查询组队分类详细
export function getTeamCategory(id) {
  return request({
    url: '/system/teamCategory/' + id,
    method: 'get'
  })
}

// 新增组队分类
export function addTeamCategory(data) {
  return request({
    url: '/system/teamCategory',
    method: 'post',
    data: data
  })
}

// 修改组队分类
export function updateTeamCategory(data) {
  return request({
    url: '/system/teamCategory',
    method: 'put',
    data: data
  })
}

// 删除组队分类
export function delTeamCategory(id) {
  return request({
    url: '/system/teamCategory/' + id,
    method: 'delete'
  })
}

// 导出组队分类
export function exportTeamCategory(query) {
  return request({
    url: '/system/teamCategory/export',
    method: 'get',
    params: query
  })
}